You can create styled codeblocks using the code class on any element. Optionally you can add an element with the language id to display the code block's language in the top right

<div class="code">
    <span id="language">JavaScript</span>
    code goes here
</div>